package com.client.model.pojo.creditcard;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @TableName consume_record
 */
@TableName(value = "consume_record")
@Data
public class ConsumeRecord implements Serializable {
    /**
     * 信用卡消费表
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 当笔消费日期
     */
    @TableField(value = "consume_date")
    private Date consumeDate;

    /**
     * 当笔消费金额
     */
    @TableField(value = "money")
    private BigDecimal money;

    /**
     * 所属信用卡卡号
     */
    @TableField(value = "card_num")
    private String cardNum;

    /**
     * 备用字段
     */
    @TableField(value = "remark")
    private Integer remark;
    @TableField(value = "create_time")
    private Date createTime;
    @TableField(value = "update_time")
    private Date updateTime;
    @TableField(value = "rates")
    private BigDecimal rates;
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
